package com.example.badmintonDB.dao;

import com.example.badmintonCommon.entity.Gym;
import com.example.badmintonCommon.entity.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface GymMapper {

    //查看所有体育馆基本信息
    List<Gym> FindAllGyms ();

    //查看体育馆具体信息
    Gym FindGymMes (@Param("id") Integer id);

    //（取消）预定球场
    void updateGymPlaces (@Param("id") Integer id, @Param("place") int[][] place);

    //创造订单
    void CreateOder (Order oder);

    //取消订单
    void CancelOder (String oderId,String oderStatus);

    //获得订单信息
    Order FindOrderById (@Param("oderid") String oderid);

}
